{dede:config.pagesize value="30"/}
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>网站会员管理</title>
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/web/css/admin.css">
<script src="js/ieemu.js"></script>
<script src="js/member.js"></script>
<script type="text/javascript">
function checkSubmit()
 {
if(document.form1.keyword.value=='')
{
document.form1.keyword.focus();
alert("请输入账号");
return false;}
}
</script>
<style type="text/css">
.pagelistbox{text-align:center;padding-top:30px;padding-bottom:30px;overflow:hidden;}
.pagelistbox a{background-color:#fff;font-size:14px;display:inline-block;height:36px;line-height:36px;border:1px solid #dadada;color:#666;margin-left:5px;padding:0 20px;}
.pagelistbox a:hover{border:1px solid #ff700a;color:#fff;background-color:#ff700a;text-decoration:none;}
.pagelistbox .cpage{font-size:14px;display:inline-block;height:36px;line-height:36px;border:1px solid #ff700a;color:#fff;background-color:#ff700a;margin-left:5px;padding:0 20px;}
</style>
</head>
<body>
<form action="member_main.php" name="form1" method="get" onSubmit="return checkSubmit();">
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mt-3 mb-3">
      <tr>
        <td height="36">
          <table cellpadding="0" cellspacing="0">
            <tr>
             <td width="170" align="center">
             <input name="keyword" type="text" id="keyword" placeholder="请输入用户账号" value="{dede:global name='keyword'/}" style="width:170px;margin-right:10px;height:40px;line-height:40px;">
             </td>
              <td><button type="submit" class="btn btn-success btn-sm" style="height:40px;line-height:40px;padding:0 10px;font-size:14px;">搜索</button></td>
              <td style="display:none;">
                <select name="sortkey" id="sortkey" style="width:160px">
                  {dede:global name='sortform'/}
                  <option value="mid">mid/注册时间</option>
                  <option value="logintime">登录时间</option>
                  <option value="rank">会员等级</option>
                  <option value="money">会员金币</option>
                  <option value="scores">会员积分</option>
                </select>
              </td>
              <td style="display:none;">
                <select name="sex" id="sex" style="width:160px">
                  {dede:global name='sexform'/}
                  <option value="男">男</option>
                  <option value="女">女</option>
                  <option value="保密">保密</option>
                </select>
              </td>
              <td style="display:none;">
                <select name="spacesta" id="spacesta" style="width:160px">
                  <option value='-10'>会员状态</option>
                  <?php
                  foreach($staArr as $k=>$v)
                  {
                    if($spacesta==$k) echo "<option value='$k' selected>$v</option>";
                  else echo "<option value='$k'>$v</option>";
                  }
                  ?>
                </select>
              </td>

            </tr>
          </table>
        </td>
      </tr>
    </table>
  </form>
<form name="form2">
<table width="98%" align="center" cellpadding="2" cellspacing="1" class="table maintable mb-3">
<div class="gzs-zhuche-list" style="width:98%;height:30px;margin:0 auto;"><span style="color:#f30;">mid=1</span> 为《管理员账号》，切勿删除，否则前端会出权限问题，切记！！</div>
      <tr>
      <td height="26" colspan="10" background="../static/web/img/tbg.gif">
      <table width="99%" cellspacing="0" cellpadding="0" class="table table-borderless">
      <tr>
      <td>会员注册管理</td>
      </tr>
      </table>
      </td>
      </tr>
      <tr bgcolor="#FEFCEF" height="26" align="center">
      <td width="5%">选择</td>
      <td width="7%">mid</td>
      <td width="5%">头像</td>
      <td width="10%">登录账号</td>
      <td width="12%">昵称</td>
      <td width="12%">可修改logo</td>
      <td width="10%">推荐人</td>
      <td width="8%">会员等级</td>
      <td width="13%">会员类型</td>
      <td width="15%">最后登录</td>
      <td width="15%">特殊操作</td>
      </tr>
      {dede:datalist empty='<tr><td colspan="10"><center>暂无内容</center></td></tr>'}
      <tr height="26" align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
        <td><input name="mid" type="checkbox" id="mid" value="{dede:field.mid/}" class="np"></td>
        <td>{dede:field.mid/}</td>
        <td><?php echo ''; if(!empty($fields['face'])) {echo "<img src='{$fields['face']}' style='max-width:50px;height:50px;margin:0 auto;'>";}?></td>
        <td>
        <?php
          echo ''.$fields['userid'].'';
          if($fields['spacesta']==-2) echo "<span class='text-danger'>[禁言]</span>";
          if($fields['spacesta']==-1) echo "<span style='color:#e74d58'>[未审核]</span>";
          if(!empty($fields['face'])) {
            echo "";
          }
          ?>
      </td>
      <td>{dede:field.uname/}</td>
      <td>{dede:field.is_logo/}</td>
      <td>{dede:field.tjrmid function="GetMemberID(@me)"/}</td>
      <td><a href="member_main.php?rank={dede:field.rank/}">{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</a></td>
      <td>{dede:field.mtype /}账号{dede:field.matt function="GetMAtt(@me)" /}</td>
      <td>{dede:field.logintime function="MyDate('Y-m-d H:i',@me)" /}</td>
      <td align="center">
      <a href="member_view.php?id={dede:field.mid/}" class="btn btn-success btn-sm">修改</a>
      <a href="member_do.php?id={dede:field.mid/}&dopost=delmember" class="btn btn-success btn-sm">删除</a>
      </td>
      </tr>
      {/dede:datalist}
      <tr>
        <td colspan="10" class="py-3">
          <button type="button" onClick="selAll();" class="btn btn-success btn-sm">全选</button>
          <button type="button" onClick="noSelAll();" class="btn btn-success btn-sm">取消</button>
          <button type="button" onClick="delArc(0);" class="btn btn-success btn-sm">删除</button>
        </td>
      </tr>
      <tr>
      <td height="36" colspan="10" align="center">
      <div class="pagelistbox" style="background:#fff;">
      {dede:pagelist listsize='5'/}
      </div>
      </td>
      </tr>
</table>
</form>
</body>
</html>